import { deleteRequest, getRequest, postRequest, putRequest } from "@/utils/api.js"

// 获取所有的邮件配置信息
export function getMailConfigs() {
	return getRequest('/alarm/mail/getConfigs');
}

// 更新启用开关
export function mailConfigEnabled(params = {}) {
	return postRequest('/alarm/mail/enabled', params);
}